<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="http://www.1000thinktank.com/favicon.ico" rel="shortcut icon" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="Keywords" content="" />
<meta name="description" content="" />
<title>千人智库</title>
<script type="text/jscript" src="${res}/js/jquery-1.7.2.min.js"></script>
<script>
var reyx= /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/;
var re = /^1\d{10}$/;
function submit(){
	var flag =dealFormdata();
	if(!flag){
		return false;
		}
	$('#form1').submit();
}
$(document).ready(function(){
	var mes= ${message};
	if(mes=='1'){
		  $("#i_error").show();
		 // $("#i_error").hide(6000);
		}
	if(mes=='2'){
		  $("#ctl00_ContentPlaceHolder1_FieldValidator_Captcha").show();
		 // $("#ctl00_ContentPlaceHolder1_FieldValidator_Captcha").hide(6000);
		}
	});
	function check(value,id){
 		if(value == '' ){
 			$('#'+id).show();
 		}else{
 			if(id=='i_attr_email'){
 				if(!reyx.test(value)){
					$('#i_attr_email2').show();
				}else{
					$('#i_attr_email2').hide();
				}
 			}
 			if(id=='i_attr_phone'){
 				if(!re.test(value)){
 					$('#i_attr_phone2').show();
 				}else{
 					$('#i_attr_phone2').hide();
 				}
 			}
 			$('#'+id).hide();
 		}
 	}

//验证form表单数据
function dealFormdata(){
    var flag = true;
	var username = $('#attr_name').val();
	if(username == ''){
		$('#i_attr_name').show();
		flag = false;
	}else $('#i_attr_name').hide();
	var jigou = $('#attr_company').val();
	if(jigou == ''){
		$('#i_attr_company').show();
		flag = false;
	}else $('#i_attr_company').hide();
	var phone = $('#attr_phone').val();
	if(phone == ''){
		$('#i_attr_phone').show();
		flag = false;
	}else{
	 	$('#i_attr_phone').hide();
		if(!re.test(phone)){
			$('#i_attr_phone2').show();
			flag = false;
		}else{$('#i_attr_phone2').hide();}
	}
	var email = $('#attr_email').val();
	if(email == ''){
		$('#i_attr_email').show();
		flag = false;
	}else{
		$('#i_attr_email').hide();
		if(!reyx.test(email)){
			$('#i_attr_email2').show();
			flag = false;
		}else{
			$('#i_attr_email2').hide();
		}
	}
	var projectName = $('#attr_projectName').val();
	if(jigou == ''){
		$('#i_attr_projectName').show();
		flag = false;
	}else $('#i_attr_projectName').hide();

	var txt = $('#txt').val();
	if(jigou == ''){
		$('#i_txt').show();
		flag = false;
	}else $('#i_txt').hide();
	return flag;
}
     

</script>
<style type="text/css">
#forum_table {
    padding-top: 150px;
    width: 100%;
    font-size: 1.2em;
    color: #2f2f2f;
}
tbody {
    display: table-row-group;
    vertical-align: middle;
    border-color: inherit;
}
tr {
    display: table-row;
    vertical-align: inherit;
    border-color: inherit;
}	
#forum_table td {
    padding: 6px 7px;
}
input {
    width: 300px;
    height: 34px;
    padding: 0 5px;
    border: 1px solid #c8c7c7;
}
.bg_red {
    background: #13A3D5;
    border-bottom: 2px solid #0F86BA;
    border-radius: 5px;
}
a {
    text-decoration: none;
}
.logo {
    height: 50px;
    padding-top: 20px;
}
.eader_m {
    width: 1000px;
    margin: 0 auto;
    height: 100px;
}
</style>
</head>
<body id="shenbao11">
<div id="content_box">
	<div class="top_title top_title1">
	</div>

	<div class="container1">
<div class="content">

	<form id="form1" action="add/techOrreq_save.jhtml" method="post" enctype="multipart/form-data">
	<div class="" id="div4" >
	<input type="hidden" id="date" value="" />
		<p id="p" class="title_p"></p>
		<table class="forum_table" id="forum_table" cellspacing="0" cellpadding="0">
			<tbody>
		
			<tr align="center">
				<td colspan="2" align="center" style="padding-right: 150px;" >
					
			<div class="logo"><a href="http://www.1000thinktank.com/"><img src="/images/req.jpg"  width="350px"  alt="千人计划_项目对接_高端猎聘_学术会议-千人智库"></a>
			<!-- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="/r/cms/www/red/images/weixin2.png" width="72" height="72" alt="千人智库官方二维码">  --></div>
			</br></br></br>
				</td>
			</tr>
			<tr align="center">
				<td colspan="2" align="center" style="padding-right: 150px;" >
				<font size="5">	添加成功，工作人员会在24小时日内与您联系！</font></br></br>
				<font size="3"><a href="/showAddDemand">您有或需要项目、技术、人才，欢迎提交！千人智库将提供精准高效服务！</a></font>
				</td>
			</tr>
		</tbody>
		</table>
	</div>
	</form>
</div>
<div class="clear"></div>
</div>
</div>
</body>
</html>